chore: fix no-empty-lines-between-requires in test files#11474
chore: fix no-empty-lines-between-requires in test files#11474kgryte merged 1 commit intostdlib-js:developfrom
Conversation
Move pkg-json-names lint require into MODULES block; remove blank line between adjacent fixture requires in gsyr ndarray tests. Made-with: Cursor
|
Hello! Thank you for your contribution to stdlib. We noticed that the contributing guidelines acknowledgment is missing from your pull request. Here's what you need to do:
This acknowledgment confirms that you've read the guidelines, which include:
We can't review or accept contributions without this acknowledgment. Thank you for your understanding and cooperation. We look forward to reviewing your contribution! |
Coverage Report
The above coverage report was generated for the changes in this PR. |
|
The Question for reviewers: Should I address the |
|
@GuneetGill No need to address the |
Resolves #11472
Description
This pull request:
stdlib/no-empty-lines-between-requiresESLint errors reported by the JavaScript lint workflow for two test files.lib/node_modules/@stdlib/_tools/lint/pkg-json-names/test/test.lint.js, movesvar lint = require( './../lib/lint.js' );into the// MODULES //section with the other top-levelrequiredeclarations, so a laterrequireis not separated from an earlier one by non-requirestatements (the rule treats consecutive module-levelrequires across intervening code as a violation when blank lines appear between them).lib/node_modules/@stdlib/blas/base/gsyr/test/test.ndarray.js, removes the empty line between thercapandcufixturerequirelines so adjacentrequires are not split by a blank line.This pull request has the following related issues:
Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
Changes were made using Cursor IDE: locating the failing rule. I reviewed the diff and ran local ESLint on the touched files where the environment allowed.
@stdlib-js/reviewers
Questions
The file
lib/node_modules/@stdlib/blas/base/gsyr/test/test.ndarray.jsmay still report an ESLintmax-lineswarning when linted with the test config (file length over the configured limit). That predates / is separate from thestdlib/no-empty-lines-between-requiresfixes here.Should I fix
max-linesin this PR, or open a separate change?